package com.khalil.kkadmin.module.ai.agent.chatsession;

import com.khalil.kkadmin.infrastructure.jpa.domain.EntityBase;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

@Table(name = "ai_chat_session")
@EntityListeners(AuditingEntityListener.class)
@Entity
@EqualsAndHashCode(callSuper = true)
@Data
public class ChatSession extends EntityBase<Long> {

    @Column(length = 255)
    private String title;

    @Column(length = 50)
    private String username;

    private Long applicationId;

    @Column(columnDefinition = "text")
    private String memoryText;

    // 置顶
    private Integer topFlag;

    // 收藏
    private Integer collectFlag;
}
